package com.xuecheng.controller;

import com.xuecheng.entity.Student;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wz
 * @description:
 * @date 2021-12-06
 */
@Api(value = "hello api",tags = "Hello api 接口路径地址-tags",description = "Hello api 接口路径地址-des")
public interface HelloApi {

    @ApiOperation("修改学员信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "学员Id", required = true, dataType = "String", paramType = "path"),
            @ApiImplicitParam(name = "name", value = "学员名称", required = true, dataType = "String", paramType = "query")
    })
    Student modifyStudentBynNum(@PathVariable("id") String id,
                                @RequestParam("name") String name,
                                @RequestBody Student student);

    @ApiOperation("修改学员信息")
    @ApiImplicitParam(name = "id",value = "学员id")
    Student modifyStudent(@RequestBody Student student);

    @ApiOperation("修改学员信息")
    @ApiImplicitParam(name = "name",value = "学员姓名")
    Student modifyStudentName(@PathVariable("name") String name);

}
